package com.ruoyi.service.impl;

import java.util.List;

import com.ruoyi.domain.AbilityPath;
import com.ruoyi.mapper.AbilityPathMapper;
import com.ruoyi.service.IAbilityPathService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 路由Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-03
 */
@Service
public class AbilityPathServiceImpl implements IAbilityPathService
{
    @Autowired
    private AbilityPathMapper abilityPathMapper;

    /**
     * 查询路由
     * 
     * @param id 路由主键
     * @return 路由
     */
    @Override
    public AbilityPath selectAbilityPathById(Long id)
    {
        return abilityPathMapper.selectAbilityPathById(id);
    }

    /**
     * 查询路由列表
     * 
     * @param abilityPath 路由
     * @return 路由
     */
    @Override
    public List<AbilityPath> selectAbilityPathList(AbilityPath abilityPath)
    {
        return abilityPathMapper.selectAbilityPathList(abilityPath);
    }

    /**
     * 新增路由
     * 
     * @param abilityPath 路由
     * @return 结果
     */
    @Override
    public int insertAbilityPath(AbilityPath abilityPath)
    {
        return abilityPathMapper.insertAbilityPath(abilityPath);
    }

    /**
     * 修改路由
     * 
     * @param abilityPath 路由
     * @return 结果
     */
    @Override
    public int updateAbilityPath(AbilityPath abilityPath)
    {
        return abilityPathMapper.updateAbilityPath(abilityPath);
    }

    /**
     * 批量删除路由
     * 
     * @param ids 需要删除的路由主键
     * @return 结果
     */
    @Override
    public int deleteAbilityPathByIds(Long[] ids)
    {
        return abilityPathMapper.deleteAbilityPathByIds(ids);
    }

    /**
     * 删除路由信息
     * 
     * @param id 路由主键
     * @return 结果
     */
    @Override
    public int deleteAbilityPathById(Long id)
    {
        return abilityPathMapper.deleteAbilityPathById(id);
    }

    @Override
    public AbilityPath checkPathUnique(String path) {
        return abilityPathMapper.checkPathUnique(path);
    }
}
